package cn.itsource.ymcc.mapper;

import cn.itsource.ymcc.domain.Course;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gwk
 * @since 2023-08-04
 */
public interface CourseMapper extends BaseMapper<Course> {

    /**
     * 添加到课程和老师的中间表
     * @param courseId
     * @param teacharIds
     */
    void insertToCourserTeacher(@Param("courseId") Long courseId, @Param("teacherids") List<Long> teacharIds);
}
